package com.atguigu.gulimall.seckill.controller;

import com.atguigu.gulimall.seckill.service.SeckillService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class Test {

    @Autowired
    SeckillService seckillServer;

    @RequestMapping("/shangjia")
    public String shangjia(){
        log.info("上架");
        //1.重复上架的商品无需处理
        seckillServer.uploadSeckillSkuLatest3Days();
        return "上架成功";
    }
}
